<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableTranslateImprovedRecords extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('translate_improved_records', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('translate_record_id')->comment('translate_records表记录id');
            $table->tinyInteger('status')->default(0)->comment('是否完成：1.未审核 2.审核通过 3.审核未通过');
            $table->text('translate_text')->comment('改进后的译文');
            $table->integer('translator_id')->comment('翻译人员id');
            $table->string('auditor', 32)->comment('审核人员');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('translate_records');
    }
}
